#coding:utf8
from django.conf.urls import url,include
from django.contrib import admin
from django.views.static import serve
from .settings import MEDIA_ROOT,STATIC_ROOT
import xadmin
xadmin.autodiscover()

urlpatterns = [
    url(r'^admin/', include(xadmin.site.urls)),
    url(r'^account/', include('account.urls')),
    url(r'^workflow/', include('workflow.urls')),
    url(r'^medias/(?P<path>.*)$', serve, {'document_root':MEDIA_ROOT}),
    url(r'^static/(?P<path>.*)$', serve, {'document_root':STATIC_ROOT}),
]
